import QtQuick
import QtQuick.Controls

Window {
    width: 640
    height: 480
    visible: true
    title: qsTr("Hello World")

    DelayButton {
        anchors.centerIn: parent
        font.pointSize: 14
        width: 250
        height: 50

        text: "确认格式化" + " (" + Math.round(progress * 100) + "%)"
        delay: 3000 // 默认3s延迟，可修改
        onActivated: console.log("format partition ...")
    }
}
